package com.kaifamiao.N0728;

public class Cat {

    String name;

    public void eat(){
        System.out.println("吃猫粮");
    }

    class JFCat extends Cat{

    }

    class Tiger extends Cat{
        @Override
        public void eat(){
            System.out.println("吃肉");
        }
    }
}
